package com.sjqg.web;

import java.util.List;
import java.util.Map;

import com.sjqg.dao.AddressDao;
import com.sjqg.model.Address;
import com.sjqg.model.User;

import net.sf.json.JSONArray;

public class GetAddress extends JsonServlet {
	private AddressDao adressDao = new AddressDao();
	@Override
	public String dealInput(Map<String, String[]> input) {
		String id = input.get("openId")[0];
		List<Address> address = adressDao.getAddress(id);
//		System.out.println(JSONArray.fromObject(user).toString());
		return JSONArray.fromObject(address).toString();
	}
}
